package org.jasig.cas.authentication.handler;

import com.yiper.entity.User;
import com.yiper.util.PasswordHelperMD5;

/**
 * Created by Administrator on 2018/9/9.
 */
public class MyPasswordEncoder implements PasswordEncoder {
    private final static String SALT = "yiper";
    @Override
    public String encode(String password) {
        User user = new User();
        user.setSalt(SALT);
        return  PasswordHelperMD5.getPassword(user);
    }
}
